<%inherit file="/base.mako"/>\

<%def name="header()">Year ${c.year}</%def>

<div id="year"></div>

<table class="data">
  <tr>
    <th>Year</th>
    <th>Asian</th>
    <th>Black</th>
    <th>Hispanic</th>
    <th>Native American</th>
    <th>White</th>
  </tr>
  % for year in c.years:
  <tr>
    <td>
      <a href="${h.url(controller="years", action="detail", year=year.year)}">
        ${year.year}
      </a>
    </td>
    <td>${year.asian}</td>  
    <td>${year.black}</td>  
    <td>${year.hispanic}</td>  
    <td>${year.nativeamerican}</td>  
    <td>${year.white}</td>  
  </tr>
  % endfor
</table>

<%def name="js()">
<script type="text/javascript"> 
 ${c.pie_chart.get_js('year')}
</script>
</%def>